﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/qlqa.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Quản lý món ăn
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
      <input type="hidden" id="idThucDonDangChon"/>
    <div class="row">
        <div class="col-md-4">
            <div class="panel">
                <div class="panel-heading">
                    <div class="row">
                        <div class="col-md-7 panel-title">
                            Danh sách thực đơn
                        </div>
                    </div>
                </div>
                <div class="col-md-12 padding-top padding-bottom">
                    <div class="input-group">
                        <input class="form-control" type="text" id="txtTimKiemThucDon" />
                        <span class="input-group-addon"><i class="glyphicons glyphicons-search"></i></span>
                    </div>
                </div>
                <div class="panel-body" id="divDanhSachThucDon">
                </div>
            </div>
        </div>
        <div class="col-md-8">
            <div class="panel">
                <div class="panel-heading">
                    <div class="row">
                        <div class="col-md-6 panel-title">
                            Danh sách món ăn
                        </div>
                        <div class="col-md-4 ">
                            <div class="input-group">
                                <input class="form-control" type="text" id="txtTimKiemMonAn" />
                                <span class="input-group-addon"><i class="glyphicons glyphicons-search"></i></span>
                            </div>
                        </div>
                        <div class="col-md-2">
                            <input type="button" class="btn btn-info" id="btnThemMonAn" value="Thêm món" />
                        </div>
                    </div>
                </div>
                <div class="panel-body" id="divDanhSachMonAn">
                </div>
            </div>
        </div>
    </div>
    <div class="modal fade" id="divThongTinMonAn" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;</button>
                    <h4 class="modal-title">
                        <i class="fa fa-lock">&nbsp;</i> Thông tin món ăn
                    </h4>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" role="form" id="frmThongTinMonAn" enctype="multipart/form-data">
                        <input type="hidden" id="hdThucDonId" name="IdThucDon" />
                        <input type="hidden" id="IsSuDung" name="IsSuDung"/>
                        <input type="hidden" id="idMonAn" value=""/>
                        <input type="hidden" id="Id" name="Id" value=""/>
                        <div id="hinhMonAn">
                            <img id="blah" src="../../Content/img/avatars/login-bk.png" alt="avatar" height="180px" width="200px">
                            <input type="file" name="uploadControl" value="Đính kèm file" id="imgInp"/>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-3 text-right">
                                Tên món ăn
                            </label>
                            <div class="col-lg-9">
                                <input type="text" id="txtTenMonAn" name="Ten" class="form-control" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-3 text-right">
                                Giá món ăn
                            </label>
                            <div class="col-lg-9">
                                <input type="text" id="txtGiaMonAn" name="Gia" class="form-control" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-lg-3 text-right">
                                Sử dụng
                            </label>
                            <div class="col-lg-9 ">
                                <input type="checkbox" id="chkActive"/>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">
                        Hủy bỏ</button>
                    <button type="button" class="btn btn-primary" id="btnLuuMonAn">
                        Lưu
                    </button>
                </div>
            </div>
        </div>
    </div>
    
        <div class="modal fade" id="divThongTin" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                        &times;</button>
                    <h4 class="modal-title">
                        <i class="fa fa-lock">&nbsp;</i> Thông báo
                    </h4>
                </div>
                <div class="modal-body" id="divNoiDungThongBao">
                   
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">
                        Đóng </button>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CustomCss" runat="server">
    <style type="text/css">
        #hinhMonAn {
            border-bottom: 1px dashed #DDD;
            margin: 15px 20px 25px;
            padding-bottom: 25px;
        }

        #hinhMonAn img {
            border: 2px solid #DDD;
            display: block;
            margin: 0px auto;
            padding: 5px;
            margin-bottom: 10px;
            
        }
          #hinhMonAn input 
          {
            border: 2px solid #DDD;
            display: block;
            margin: 0px auto;
            padding: 5px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="CustomScript" runat="server">
    <script src="../../Content/scripts/MonAn/MonAn.js" type="text/javascript"></script>
</asp:Content>
